﻿/*----------------------------------------------------------------
    // Copyright (C) 2009 江苏华招网
    // 版权所有。 
    // 作者：庄金冬 
    //
    // 文件名：Distribution.cs
    // 文件功能描述：配送动态查询实体类
    // 创建标识：庄金冬2009-03-26 15:24:51
    //
    // 修改标识：
    // 修改描述：
    //
    // 修改标识：
    // 修改描述：
    //
    // 审核人：
    // 审核时间：
    // 审核说明：
 //----------------------------------------------------------------*/


using System;
using System.Collections.Generic;

using System.Text;

namespace HZ.DrugTrade.Model.Query
{
    /// <summary>
    /// 配送
    /// </summary>
    [Serializable]
    public class Distribution : IQuery
    {
        /// <summary>
        /// 流程编号
        /// </summary>
        public string FlowID
        {
            get;
            set;
        }
        /// <summary>
        /// 流程名称
        /// </summary>
        public string FlowName
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单编号
        /// </summary>
        public string OrderID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细编号
        /// </summary>
        public string OrderDetailID
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构编号
        /// </summary>
        public string HospitalID
        {
            get;
            set;
        }
        /// <summary>
        /// 采购单名称
        /// </summary>
        public string OrderName
        {
            get;
            set;
        }
        /// <summary>
        /// 采购单总额
        /// </summary>
        public decimal? TotalAmount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单总额（小于）
        /// </summary>
        public decimal? TotalAmountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单总额（大于）
        /// </summary>
        public decimal? TotalAmountFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 开始时间
        /// </summary>
        public System.DateTime? StartTime
        {
            get;
            set;
        }

        /// <summary>
        /// 开始时间（晚于）
        /// </summary>
        public System.DateTime? StartTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 开始时间（早于）
        /// </summary>
        public System.DateTime? StartTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 计划结束时间
        /// </summary>
        public System.DateTime? PlanEndTime
        {
            get;
            set;
        }

        /// <summary>
        /// 计划结束时间（晚于）
        /// </summary>
        public System.DateTime? PlanEndTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 计划结束时间（早于）
        /// </summary>
        public System.DateTime? PlanEndTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 制定人
        /// </summary>
        public string PlanPerson
        {
            get;
            set;
        }
        /// <summary>
        /// 制定时间
        /// </summary>
        public System.DateTime? PlanTime
        {
            get;
            set;
        }

        /// <summary>
        /// 制定时间（早于）
        /// </summary>
        public System.DateTime? PlanTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 制定时间（晚于）
        /// </summary>
        public System.DateTime? PlanTimeFrom
        {
            get;
            set;
        }



        /// <summary>
        /// 医疗机构名称
        /// </summary>
        public string HospitalName
        {
            set;
            get;
        }

        /// <summary>
        /// 区域编号
        /// </summary>
        public string AreaID
        {
            set;
            get;
        }

        /// <summary>
        /// 商品编号
        /// </summary>
        public string GoodsID
        {
            get;
            set;
        }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Outlookc
        {
            set;
            get;
        }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            get;
            set;
        }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string SortName
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业名称
        /// </summary>
        public string CompanyName_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业名称
        /// </summary>
        public string CompanyName_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string GoodsName
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数
        /// </summary>
        public int? Factor
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数（小于）
        /// </summary>
        public int? FactorTo
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数（大于）
        /// </summary>
        public int? FactorFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 包装
        /// </summary>
        public string Pack
        {
            get;
            set;
        }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductID
        {
            get;
            set;
        }

        /// <summary>
        /// 剂型编号
        /// </summary>
        public string MedicineModelID
        {
            get;
            set;
        }

        /// <summary>
        /// 分类编号
        /// </summary>
        public string SortID
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业编号
        /// </summary>
        public string CompanyID_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业编号
        /// </summary>
        public string CompanyID_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 父分类企业编号
        /// </summary>
        public string ParentSortID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录编号
        /// </summary>
        public string ProcureCatalogID
        {
            get;
            set;
        }

        /// <summary>
        /// 项目编号
        /// </summary>
        public string ProjectID
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格
        /// </summary>
        public decimal? ProcurePrice
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格（小于）
        /// </summary>
        public decimal? ProcurePriceTo
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格（大于）
        /// </summary>
        public decimal? ProcurePriceFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录是否启用（0否;1是）
        /// </summary>
        public bool? IsUsing
        {
            get;
            set;
        }
        /// <summary>
        /// 状态（是否流程中）（0否;1是）
        /// </summary>
        public bool? IsFlowing
        {
            get;
            set;
        }
        /// <summary>
        /// 目录来源:0正常添加;1临时采购
        /// </summary>
        public int? SortSource
        {
            get;
            set;
        }

        /// <summary>
        /// 采购项目名称
        /// </summary>
        public string ProjectName
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业编号
        /// </summary>
        public string CompanyID_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业名称
        /// </summary>
        public string CompanyName_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 当前节点号
        /// </summary>
        public string CurrentNode
        {
            get;
            set;
        }

        /// <summary>
        /// 余量（采购数量-已入库量）
        /// </summary>
        public int? Balance
        {
            get;
            set;
        }

        /// <summary>
        /// 余量（采购数量-已入库量）（小于）
        /// </summary>
        public int? BalanceTo
        {
            get;
            set;
        }

        /// <summary>
        /// 余量（采购数量-已入库量）（大于）
        /// </summary>
        public int? BalanceFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购数量
        /// </summary>
        public int? PurchaseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购数量（小于）
        /// </summary>
        public int? PurchaseCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 采购数量（大于）
        /// </summary>
        public int? PurchaseCountFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? Price
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格（小于）
        /// </summary>
        public decimal? PriceTo
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格（大于）
        /// </summary>
        public decimal? PriceFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 单次配送额
        /// </summary>
        public decimal? Amount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购金额(小于)
        /// </summary>
        public decimal? AmountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 采购金额（晚于）
        /// </summary>
        public decimal? AmountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 执行时间
        /// </summary>
        public System.DateTime? ExecuteTime
        {
            get;
            set;
        }


        /// <summary>
        /// 执行时间（晚于）
        /// </summary>
        public System.DateTime? ExecuteTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 执行时间（早于）
        /// </summary>
        public System.DateTime? ExecuteTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细状态标识:0未确认;1已提交;2已确认（已确认的采购单，就不可以再修改了）
        /// </summary>
        public int? OrderDetailState
        {
            get;
            set;
        }

        /// <summary>
        /// 退货数量
        /// </summary>
        public int? ReturnCount
        {
            get;
            set;
        }


        /// <summary>
        /// 退货数量（小于）
        /// </summary>
        public int? ReturnCountTo
        {
            get;
            set;
        }


        /// <summary>
        /// 退货数量（大于）
        /// </summary>
        public int? ReturnCountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 配送流水号
        /// </summary>
        public string DistributionSerialID
        {
            get;
            set;
        }

        /// <summary>
        /// 配送量
        /// </summary>
        public int? DistributeCount
        {
            get;
            set;
        }

        /// <summary>
        /// 配送量（小于）
        /// </summary>
        public int? DistributeCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 配送量（大于）
        /// </summary>
        public int? DistributeCountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单单次配送量
        /// </summary>
        public int? Dis_DistributeCount
        {
            get;
            set;
        }


        /// <summary>
        /// 配送单配送量（小于）
        /// </summary>
        public int? Dis_DistributeCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单配送量（大于）
        /// </summary>
        public int? Dis_DistributeCountFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 配送时间
        /// </summary>
        public System.DateTime? DistributeTime
        {
            get;
            set;
        }

        /// <summary>
        /// 配送时间（晚于）
        /// </summary>
        public System.DateTime? DistributeTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 配送时间（早于）
        /// </summary>
        public System.DateTime? DistributeTimeFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 配送状态:0已配送;1已验收入库
        /// </summary>
        public int? DistributeState
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量
        /// </summary>
        public int? WarehouseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量(小于)
        /// </summary>
        public int? WarehouseCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量(大于)
        /// </summary>
        public int? WarehouseCountFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 配送单已入库数量
        /// </summary>
        public int? Dis_WarehouseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单已入库数量(小于)
        /// </summary>
        public int? Dis_WarehouseCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单已入库数量(大于)
        /// </summary>
        public int? Dis_WarehouseCountFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 入库时间
        /// </summary>
        public System.DateTime? WarehouseTime
        {
            get;
            set;
        }

        /// <summary>
        /// 入库时间(晚于)
        /// </summary>
        public System.DateTime? WarehouseTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 入库时间（早于）
        /// </summary>
        public System.DateTime? WarehouseTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 是否已开发票(0否;1是)
        /// </summary>
        public bool? IsInvoice
        {
            get;
            set;
        }

        /// <summary>
        /// 配送批号
        /// </summary>
        public string BatchRecordID
        {
            get;
            set;
        }

        /// <summary>
        /// 拼音码
        /// </summary>
        public string PinyinCode
        {
            get;
            set;
        }

        /// <summary>
        /// 五笔码
        /// </summary>
        public string WBCode
        {
            get;
            set;
        }
        /// <summary>
        /// 材质
        /// </summary>
        public string Material
        {
            get;
            set;
        }
        /// <summary>
        /// 地区名
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 排序字段【格式如：UserID ASC,UserName DESC, IsAdmin ASC】
        /// </summary>
        public string SortFields { get; set; }

        /// <summary>
        /// 自定义查询字段[格式: UserID = '1234' AND Name = 'Zeus2' AND ID NOT (SELECT ID FROM XX)]
        /// </summary>
        public string Append { get; set; }
    }
}
